<?php
/**
 * Created by PhpStorm.
 * User: Digvijay
 * Date: 2/8/15
 * Time: 11:28 PM
 */
/**
 * @Entity
 * @Table(name="ac_system_config")
 */
class Systemconfig implements JsonSerializable {

    const SPECIAL_OFFER = "specialoffer.enable";
    const CRON_ORDER_CANCEL_ENABLE = "cron.order.cancel.enable";
    const CRON_ORDER_CANCEL_HOUR = "cron.order.cancel.hour";
    const CRON_INVENTORY_REPORT_MIN_QUANTITY = "cron.inventory.report.min.quantity";
    /**
     * @Id
     * @Column(type="integer", nullable=false)
     * @GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @Column(name="property",nullable=false)
     */
    private $property;

    /**
     * @Column(name="value",nullable=false)
     */
    private $value;

    /**
     * @param mixed $id
     */
    public function setId($id) {
        $this->id = $id;
    }

    /**
     * @return mixed
     */
    public function getId() {
        return $this->id;
    }

    /**
     * @param mixed $property
     */
    public function setProperty($property) {
        $this->property = $property;
    }

    /**
     * @return mixed
     */
    public function getProperty() {
        return $this->property;
    }

    /**
     * @param mixed $value
     */
    public function setValue($value) {
        $this->value = $value;
    }

    /**
     * @return mixed
     */
    public function getValue() {
        return $this->value;
    }

    public function jsonSerialize() {
        return (object)get_object_vars($this);
    }
} 